/* Person.prototype.like = '泡脚'
function Person(){
    this.name = '梁总'
    this.age = 18
}
Person.say = function (){
    return '边弹琴边泡脚'
} */





class Person{
    constructor(){  //构造函数
        this.name = '梁总'
        this.age = 18
    }
    like() {
        return '泡脚'
    }
    static say(){
        return '边弹琴边泡脚'
    } 
}

let p = new Person()

console.log(p);
console.log(p.like());


